Package edu.uiuc.ncsa.security.core.util
Class IdentifierProvider<V extends Identifier>
- java.lang.Object
- 
- edu.uiuc.ncsa.security.core.util.IdentifierProvider<V>
 
- 
- All Implemented Interfaces:
- javax.inject.Provider<V>
 - Direct Known Subclasses:
- IP2
 
 public abstract class IdentifierProvider<V extends Identifier> extends Object implements javax.inject.Provider<V> Creates Identifiers for use byIdentifiableobjects. Override for specific semantics. These are created for the various token types when the system is loaded.Created by Jeff Gaynor 
 on 4/3/12 at 1:54 PM
- 
- 
Field SummaryFields Modifier and Type Field Description protected Stringcomponentstatic StringSCHEMEstatic StringSCHEME_SPECIFIC_PARTprotected StringschemeSpecificPartprotected StringuriSchemeprotected booleanuseTimestampsstatic StringVERSION_2_0
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedIdentifierProvider(String component)protectedIdentifierProvider(String component, boolean useTimestamps)protectedIdentifierProvider(String scheme, String schemeSpecificPart, String component, boolean useTimestamps)The main constructor.protectedIdentifierProvider(URI uri, String component, boolean useTimestamps)protectedIdentifierProvider(URI uri, String component, String versionString, boolean useTimestamps)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Vget()protected StringgetCaput()Creates the caput (="head") from the uri scheme and scheme specific part.static voidsetScheme(String SCHEME)static voidsetSchemeSpecificPart(String SCHEME_SPECIFIC_PART)protected URIuniqueIdentifier()Creates identifiers of the form
 caput + head + hexString + t
 with forward slashes added between components as needed.
 E.g.
 
- 
- 
- 
Field Detail- 
SCHEMEpublic static String SCHEME 
 - 
SCHEME_SPECIFIC_PARTpublic static String SCHEME_SPECIFIC_PART 
 - 
VERSION_2_0public static String VERSION_2_0 
 - 
uriSchemeprotected String uriScheme 
 - 
schemeSpecificPartprotected String schemeSpecificPart 
 - 
useTimestampsprotected boolean useTimestamps 
 - 
componentprotected String component 
 
- 
 - 
Constructor Detail- 
IdentifierProviderprotected IdentifierProvider(URI uri, String component, String versionString, boolean useTimestamps) 
 - 
IdentifierProviderprotected IdentifierProvider(String component) 
 - 
IdentifierProviderprotected IdentifierProvider(String component, boolean useTimestamps) 
 - 
IdentifierProviderprotected IdentifierProvider(String scheme, String schemeSpecificPart, String component, boolean useTimestamps) The main constructor. The component is appended after the caput. If time stamps are enabled, then the last component will be a the current time in milliseconds.- Parameters:
- scheme-
- schemeSpecificPart-
- component-
- useTimestamps-
 
 
- 
 - 
Method Detail- 
setSchemepublic static void setScheme(String SCHEME) 
 - 
setSchemeSpecificPartpublic static void setSchemeSpecificPart(String SCHEME_SPECIFIC_PART) 
 - 
getCaputprotected String getCaput() Creates the caput (="head") from the uri scheme and scheme specific part. This will be of the form
 scheme : scheme specific part :
 Note that this will not add the final ":" if the SSP ends with a colon or slash. E.g. if- scheme = myproxy
- SPP = oa4mp,2012
 Note that this does allow for empty scheme specific parts vs. null ones. In the former, it is assumed the user is actively suppressing this component, where as in the null case the default is used. - Returns:
 
 - 
uniqueIdentifierprotected URI uniqueIdentifier() Creates identifiers of the form
 caput + head + hexString + t
 with forward slashes added between components as needed.
 E.g. if the caput = myproxy:oa4mp,2012:
 and the head is "client" and the tail is null, then one result might be
 myproxy:oa4mp,2012:/client/1d1158e470589f64a816b040b669ba07 Note that if timestamps are enabled, then a last component consisting of a time stamp will be added.- Returns:
 
 - 
getpublic V get() - Specified by:
- getin interface- javax.inject.Provider<V extends Identifier>
 
 
- 
 
-