com.ibm.mfp.java.token.validator.TokenValidationResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mfp-java-token-validator Show documentation
Show all versions of mfp-java-token-validator Show documentation
IBM MFP Java token validator is used to validate Oauth tokens against an Authorization server, BuildNumber is : 8.0.2017020112
/*
* IBM Confidential OCO Source Materials
*
* 5725-I43 Copyright IBM Corp. 2006, 2015
*
* The source code for this program is not published or otherwise
* divested of its trade secrets, irrespective of what has
* been deposited with the U.S. Copyright Office.
*/
package com.ibm.mfp.java.token.validator;
/**
* Wrapper object Result of the TokenValidationManager, holds the introspection data from the AZ Server and the
* authentication error to be returned on the response (if any exist)
* Created by Ore Poran on 11/19/15.
*/
public class TokenValidationResult {
private AuthenticationError authError;
private TokenIntrospectionData introData;
TokenValidationResult(AuthenticationError authError, TokenIntrospectionData introData) {
this.authError = authError;
this.introData = introData;
}
/**
* Returns the Introspection Data for the authorization header given
* @return introspection data object or null if no data was retrieved from the AZ server
*/
public TokenIntrospectionData getIntrospectionData() {
return introData;
}
/***
* Returns the authentication error, that is to be appended to the WWW-Authenticate
* header of the response and
* sent back to the MFP Client
* @return authentication error or null if there is no error
*/
public AuthenticationError getAuthenticationError() {
return authError;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy