public static TokenAuthenticationSecurity forRegisteredService(final RegisteredService registeredService) {
        val securityConfiguration = new RegisteredServiceSecurityConfiguration();
        val signingConfig = getSignatureConfiguration(registeredService);
        val encConfig = getEncryptionConfiguration(registeredService);
        securityConfiguration.setEncryptionConfiguration(encConfig);
        securityConfiguration.setSignatureConfiguration(signingConfig);
        return new TokenAuthenticationSecurity(securityConfiguration);
    }
Create a token security instance for a registered service.

@param registeredService the service
@return the token authentication security
support/cas-server-support-token-authentication/src/main/java/org/apereo/cas/token/authentication/TokenAuthenticationSecurity.java