Class SIPX509FileValidator
java.lang.Object
de.ikor.sip.foundation.security.authentication.x509.SIPX509FileValidator
- All Implemented Interfaces:
- SIPTokenValidator<SIPX509AuthenticationToken>
@Primary
@ConditionalOnSIPAuthProvider(listItemValue=SIPX509AuthenticationProvider.class,
                              validationClass=SIPX509FileValidator.class)
@Component
public class SIPX509FileValidator
extends Object
implements SIPTokenValidator<SIPX509AuthenticationToken>
The file-based x509 validator reads an acl file in this format:
 
# this is a comment CN=Full Name, EMAILADDRESS=name@domain.de, O=[*], C=DE CN=Full Name2, EMAILADDRESS=name2@domain.de, O=[*], C=DEAnd then validates the extracted certificate data with the contents in the file.
- Author:
- thomas.stieglmaier
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a file-based x509 auth token validator
- 
Method SummaryModifier and TypeMethodDescriptionbooleanChecks if a given token is valid
- 
Constructor Details- 
SIPX509FileValidatorCreates a file-based x509 auth token validator- Parameters:
- config- the config containing information on where to find the file that should be read
 
 
- 
- 
Method Details- 
isValidDescription copied from interface:SIPTokenValidatorChecks if a given token is valid- Specified by:
- isValidin interface- SIPTokenValidator<SIPX509AuthenticationToken>
- Parameters:
- token- the token to be checked
- Returns:
- indicates if the token is valid or not
 
 
-