/** * Can be implemented to generate masking keys. * <p> * The implementation must be thread safe. * <p> * Tyrus by default uses the following implementation: * <pre> * new MaskingKeyGenerator() { * * private final SecureRandom secureRandom = new SecureRandom(); * * public int nextInt() { * return secureRandom.nextInt(); * } * }; * </pre> * * @author Petr Janouch */ @Beta public interface MaskingKeyGenerator { /** * Return next random int similarly to {@link java.util.Random#nextInt()}. * * @return next random value. */ int nextInt(); }
/** * Can be implemented to generate masking keys. * <p> * The implementation must be thread safe. * <p> * Tyrus by default uses the following implementation: * <pre> * new MaskingKeyGenerator() { * * private final SecureRandom secureRandom = new SecureRandom(); * * public int nextInt() { * return secureRandom.nextInt(); * } * }; * </pre> * * @author Petr Janouch */ @Beta public interface MaskingKeyGenerator { /** * Return next random int similarly to {@link java.util.Random#nextInt()}. * * @return next random value. */ int nextInt(); }
@Beta public abstract class Authenticator {
@Beta public abstract class Authenticator {
@Beta public class ErrorCount implements Serializable {
@Beta public interface MessageEventListener {
@Beta public class AuthenticationException extends HandshakeException {
@Beta public interface MessageEventListener {
@Beta public interface BaseMXBean extends MessageStatisticsMXBean {
@Beta public interface ApplicationMXBean extends BaseMXBean {
@Beta public class AuthenticationException extends HandshakeException {
@Beta public interface EndpointMXBean extends BaseMXBean {
@Beta public interface EndpointEventListener {
@Beta public interface EndpointEventListener {
@Beta public final class Credentials {
@Beta public final class Credentials {
@Beta public interface ApplicationEventListener {
@Beta public interface ApplicationEventListener {
/** * Get {@link org.glassfish.tyrus.core.wsadl.model.Application} representing current set of deployed endpoints. * * @return application representing current set of deployed endpoints. */ @Beta public Application getWsadlApplication() { Application application = new Application(); for (TyrusEndpointWrapper wrapper : endpointWrappers) { org.glassfish.tyrus.core.wsadl.model.Endpoint endpoint = new org.glassfish.tyrus.core.wsadl.model.Endpoint(); endpoint.setPath(wrapper.getServerEndpointPath()); application.getEndpoint().add(endpoint); } return application; }
/** * Get {@link org.glassfish.tyrus.core.wsadl.model.Application} representing current set of deployed endpoints. * * @return application representing current set of deployed endpoints. */ @Beta public Application getWsadlApplication() { Application application = new Application(); for (TyrusEndpointWrapper wrapper : endpointWrappers) { org.glassfish.tyrus.core.wsadl.model.Endpoint endpoint = new org.glassfish.tyrus.core.wsadl.model.Endpoint(); endpoint.setPath(wrapper.getServerEndpointPath()); application.getEndpoint().add(endpoint); } return application; }