|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.geant.edugain.validation.eduGAINComponentID
public class eduGAINComponentID
This class represents component identificators and allows to manipulate them easily.
| Field Summary | |
|---|---|
private java.lang.String |
entity
|
private java.lang.String |
federation
|
private java.lang.String |
kind
|
private org.apache.log4j.Logger |
log
|
private java.lang.String |
namespace
|
private org.opensaml.common.SignableSAMLObject |
object
|
private java.lang.String |
service
|
private java.lang.String |
urn
|
private java.lang.String[] |
values
|
| Constructor Summary | |
|---|---|
eduGAINComponentID(org.opensaml.SAMLSignedObject obj)
Creates a new ComponentID from an OpenSAML 1 signed document. |
|
eduGAINComponentID(org.opensaml.common.SignableSAMLObject obj)
Creates a new ComponentID from an OpenSAML 2 signed document. |
|
eduGAINComponentID(java.lang.String cid)
Creates a new instance of eduGAINComponentID |
|
| Method Summary | |
|---|---|
void |
checkEntityName()
This method verifies the match between the entity name in the Component ID retrieved from the signature of a metadata object, the one from the EntitiesDescriptor@Name attribute (if existent) and from the EntityDescriptor@EntityID attribute. |
void |
checkEntityName(java.lang.String fromURL)
This method verifies the match between the entity name in the Component ID retrieved from the signature of a metadata object, the one from the URL (if existent),from the EntitiesDescriptor@Name attribute (if existent) and from the EntityDescriptor@EntityID attribute. |
void |
checkFederationName()
This method verifies the match between the federation name in the Component ID retrieved from the signature of a metadata object, the one from the EntitiesDescriptor@Name attribute (if existent) and from the EntityDescriptor@EntityID attribute. |
void |
checkFederationName(java.lang.String fromURL)
This method verifies the match between the federation name in the Component ID retrieved from the signature of a metadata object, the one from the URL (if existent), from the EntitiesDescriptor@Name attribute (if existent) and from the EntityDescriptor@EntityID attribute. |
java.lang.String |
getEntityName()
Returns the entity name of this component identifier. |
java.lang.String |
getFederationName()
Returns the federation name of this component identifier. |
java.lang.String |
getNameSpace()
Returns the namespace for this component identifier. |
java.lang.String |
getServiceIdentifier()
Returns the local service identifier identifier (if present) of this component identifier. |
java.lang.String |
getURN()
Returns the full urn for this component identifier. |
java.lang.String[] |
getValues()
Returns all the values (not including namespace) for this URN. |
boolean |
isBE()
Determines if this component identifier relates to a Bridging Element. |
boolean |
isFPP()
Determines if this component identifier relates to a Federation Peering Point. |
boolean |
isIDP()
Determines if this component identifier relates to an Identity Provider. |
boolean |
isMDS()
Determines if this component identifier relates to a Metadata Service. |
boolean |
isSP()
Determines if this component identifier relates to a Service Provider. |
private void |
parse(java.lang.String cid)
|
java.lang.String |
toString()
Returns the full urn for this component identifier. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String namespace
private java.lang.String kind
private java.lang.String federation
private java.lang.String entity
private java.lang.String service
private org.opensaml.common.SignableSAMLObject object
private java.lang.String urn
private java.lang.String[] values
private org.apache.log4j.Logger log
| Constructor Detail |
|---|
public eduGAINComponentID(java.lang.String cid)
throws ValidationException
ValidationException
public eduGAINComponentID(org.opensaml.common.SignableSAMLObject obj)
throws ValidationException
obj - A signed object to extract the ComponentID from.
ValidationException
public eduGAINComponentID(org.opensaml.SAMLSignedObject obj)
throws ValidationException
obj - A signed object to extract the ComponentID from.
ValidationException| Method Detail |
|---|
private void parse(java.lang.String cid)
throws ValidationException
ValidationExceptionpublic java.lang.String getFederationName()
public java.lang.String getEntityName()
public java.lang.String getServiceIdentifier()
public boolean isMDS()
public boolean isFPP()
public boolean isBE()
public boolean isSP()
public boolean isIDP()
public void checkFederationName(java.lang.String fromURL)
throws ValidationException
fromURL - The federation name extracted from the URL.
ValidationException
public void checkFederationName()
throws ValidationException
ValidationException
public void checkEntityName(java.lang.String fromURL)
throws ValidationException
fromURL - The federation name extracted from the URL
ValidationException
public void checkEntityName()
throws ValidationException
ValidationExceptionpublic java.lang.String getNameSpace()
getNameSpace in interface ComponentIDpublic java.lang.String getURN()
getURN in interface ComponentIDpublic java.lang.String[] getValues()
getValues in interface ComponentIDpublic java.lang.String toString()
getURN().
toString in interface ComponentIDtoString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||