io.quarkus.websockets.client.runtime.WebSocketPrincipal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-websockets-client Show documentation
Show all versions of quarkus-websockets-client Show documentation
Client for WebSocket communication channel
package io.quarkus.websockets.client.runtime;
import java.security.Principal;
import io.quarkus.security.identity.SecurityIdentity;
public class WebSocketPrincipal implements Principal {
final SecurityIdentity securityIdentity;
public WebSocketPrincipal(SecurityIdentity securityIdentity) {
this.securityIdentity = securityIdentity;
}
@Override
public String getName() {
return securityIdentity.getPrincipal().getName();
}
public SecurityIdentity getSecurityIdentity() {
return securityIdentity;
}
}