All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.edu.icm.unity.stdext.credential.cert.CertificateExchange Maven / Gradle / Ivy

Go to download

Standard plugins which are distributed with the system: attribute syntaxes, identity types, credentials

There is a newer version: 4.0.2
Show newest version
/*
 * Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
 * See LICENCE.txt file for licensing information.
 */
package pl.edu.icm.unity.stdext.credential.cert;

import java.security.cert.X509Certificate;

import pl.edu.icm.unity.engine.api.authn.AuthenticationResult;
import pl.edu.icm.unity.engine.api.authn.CredentialExchange;
import pl.edu.icm.unity.engine.api.authn.remote.AuthenticationTriggeringContext;

/**
 * Exchange for checking if the presented certificate is in the DB. It is assumed that the
 * certificate was actually authenticated by the transport layer - the verificator only checks 
 * if the certificate is present in the database.
 * @author K. Benedyczak
 */
public interface CertificateExchange extends CredentialExchange
{
	public static final String ID = "certificate exchange";
	
	AuthenticationResult checkCertificate(X509Certificate[] chain, String formForUnknown, 
			boolean enableAssociation, AuthenticationTriggeringContext triggeringContext); 
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy