
ws.wamp.jawampa.auth.client.Ticket Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jawampa-core Show documentation
Show all versions of jawampa-core Show documentation
jawampa is a library that provides client and server support for the Web Application Messaging Protocol (WAMP) on the JVM.
The newest version!
package ws.wamp.jawampa.auth.client;
import ws.wamp.jawampa.WampMessages.AuthenticateMessage;
import ws.wamp.jawampa.WampMessages.ChallengeMessage;
import com.fasterxml.jackson.databind.ObjectMapper;
public class Ticket implements ClientSideAuthentication {
public static final String AUTH_METHOD = "ticket";
private final String ticket;
public Ticket(String ticket) {
this.ticket = ticket;
}
@Override
public String getAuthMethod() {
return AUTH_METHOD;
}
@Override
public AuthenticateMessage handleChallenge(ChallengeMessage message,
ObjectMapper objectMapper) {
return new AuthenticateMessage(ticket, objectMapper.createObjectNode());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy