issrg.utils
Class ToRawCredential

java.lang.Object
  extended by issrg.utils.ToRawCredential

public class ToRawCredential
extends java.lang.Object

Author:
Linying Su

Constructor Summary
ToRawCredential(javax.naming.directory.Attributes attsIn, java.lang.String typeIn)
          Creates a new instance of ToRawCredential
 
Method Summary
 javax.naming.directory.Attributes convert()
          this method returns Attributes, which contains a set of <Attribute>s.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToRawCredential

public ToRawCredential(javax.naming.directory.Attributes attsIn,
                       java.lang.String typeIn)
Creates a new instance of ToRawCredential

Parameters:
attsIn - is a Attributes object, which are retrieved from any repository.
typeIn - is the class name of the repository, where the above Attributes are from.
Method Detail

convert

public javax.naming.directory.Attributes convert()
                                          throws RepositoryException
this method returns Attributes, which contains a set of <Attribute>s. Each <Attribute> contains a set of RawCredentials if MultiAuthTokenParser is configured into PERMIS. Otherwise, this method returns this.atts. Data Structure: Attributes = Attribute = name is represented as String value is represented as Object, which is decoded by a token parser.

Throws:
RepositoryException