@Override
	// @FFDCIgnore(Exception.class)
	public Subject handleJwtSSOTokenValidation(Subject subject, String encodedjwt) throws WSLoginFailedException {
		// TODO Auto-generated method stub		
        String msg = Tr.formatMessage(tc, "JWTSSO_CONFIG_INVALID_OR_TOKEN_INVALID", new Object[] {});		
		Subject resultSub = null;

		JwtSsoTokenUtils tokenUtil = getJwtSsoTokenConsumerUtils();
		if (tokenUtil != null && encodedjwt != null) {
			if (subject != null) {
				try {
					resultSub = tokenUtil.handleJwtSsoTokenValidationWithSubject(subject, encodedjwt);
				} catch (Exception e) {
					throw new WSLoginFailedException(e.getLocalizedMessage());
				}
			} else {
				try {
					resultSub = tokenUtil.handleJwtSsoTokenValidation(encodedjwt);
				} catch (Exception e) {
					throw new WSLoginFailedException(e.getLocalizedMessage());
				}
			}
		} else {
			throw new WSLoginFailedException(msg);
		}

		if (resultSub == null) {
			throw new WSLoginFailedException(msg);
		}

		return resultSub;
	}
@ Override public Subject handleJwtSSOTokenValidation ( Subject subject , String encodedjwt ) throws WSLoginFailedException { String msg = Tr . formatMessage ( tc , "JWTSSO_CONFIG_INVALID_OR_TOKEN_INVALID" , new Object [ ] { } ) ; Subject resultSub = null ; JwtSsoTokenUtils tokenUtil = getJwtSsoTokenConsumerUtils ( ) ; if ( tokenUtil != null && encodedjwt != null ) { if ( subject != null ) { try { resultSub = tokenUtil . handleJwtSsoTokenValidationWithSubject ( subject , encodedjwt ) ; } catch ( Exception e ) { throw new WSLoginFailedException ( e . getLocalizedMessage ( ) ) ; } } else { try { resultSub = tokenUtil . handleJwtSsoTokenValidation ( encodedjwt ) ; } catch ( Exception e ) { throw new WSLoginFailedException ( e . getLocalizedMessage ( ) ) ; } } } else { throw new WSLoginFailedException ( msg ) ; } if ( resultSub == null ) { throw new WSLoginFailedException ( msg ) ; } return resultSub ; }
/*
(non-Javadoc)

@see
com.ibm.ws.security.jwt.sso.token.utils.JwtSSOToken#handleJwtSSOToken(
java.lang.String)