org.gcube.soa3.connector.common.security
Interface Credentials

All Known Implementing Classes:
Base64EncodedCredentials, FederatedCredentials, TicketCredentials, UserNamePasswordCredentials, X509CombinedCredentials, X509TLSCredentials

public interface Credentials

Interface representing the credentials

Author:
Ciro Formisano (ENG)

Method Summary
 void disposeCredentials()
          Disposes the credentials making them unusable
 String getAuthenticationString()
          Gets the raw credentialS String if exists, a String representiation of the credentials used otherwise
 String getAuthenticationType()
          The credentials type
 String getHeaderString()
          Gets the credential string to be set in the header of the message
 boolean isPrepared()
           
 void prepareCredentials()
          Prepares the credentials to be sent with the message: if the credentials are string based and should be set in an header, they are returned as a String object
 

Method Detail

prepareCredentials

void prepareCredentials()
Prepares the credentials to be sent with the message: if the credentials are string based and should be set in an header, they are returned as a String object


disposeCredentials

void disposeCredentials()
Disposes the credentials making them unusable


getAuthenticationType

String getAuthenticationType()
The credentials type

Returns:
the credentials type

getAuthenticationString

String getAuthenticationString()
Gets the raw credentialS String if exists, a String representiation of the credentials used otherwise

Returns:
the credentials String

getHeaderString

String getHeaderString()
Gets the credential string to be set in the header of the message

Returns:
the credentials string if it is required to be set in an header, null otherwise

isPrepared

boolean isPrepared()
Returns:
true if the credentials have been correctly prepared


Copyright © 2013. All Rights Reserved.