org.n52.security.authentication
Class ExternalProvidedSubjectCredential

java.lang.Object
  extended by org.n52.security.authentication.ExternalProvidedSubjectCredential
All Implemented Interfaces:
Credential

public class ExternalProvidedSubjectCredential
extends java.lang.Object
implements Credential

Class ExternalProvidedSubjectCredential is used to transport an external subject through some interface boarders, where only a credential interface is provided.

One case to imagine is in soap service environments where an external module verifies the real credentials and creates an subject by self. Than with this class the created subject can be transported and be used within the AuthenticationService to transform it by login modules in a new subject.

Version:
$Revision: $
Author:
Marko Reiprecht Created on 15.09.2008

Field Summary
static java.lang.String KEY_EXTERNAL_SUBJECT
          Uuse this key to communicate in attriubte scopes about a external subject.
 
Constructor Summary
ExternalProvidedSubjectCredential(javax.security.auth.Subject subject)
          Constructor creates a new instance.
 
Method Summary
 javax.security.auth.Subject getSubject()
          Method gets the subject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_EXTERNAL_SUBJECT

public static final java.lang.String KEY_EXTERNAL_SUBJECT
Uuse this key to communicate in attriubte scopes about a external subject.

See Also:
Constant Field Values
Constructor Detail

ExternalProvidedSubjectCredential

public ExternalProvidedSubjectCredential(javax.security.auth.Subject subject)
Constructor creates a new instance.

Parameters:
subject - the subject.
Method Detail

getSubject

public javax.security.auth.Subject getSubject()
Method gets the subject.

Returns:
Subject.


Copyright © 2004-2009 52north.org. All Rights Reserved.