|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.security.authentication.LicenseReference
public class LicenseReference
Class LicenseReference encapsulates common methods of a license reference.
Field Summary | |
---|---|
static java.lang.String |
NAMESPACE_LICENSE
Namespace URL of the license schema. |
Constructor Summary | |
---|---|
LicenseReference(org.w3c.dom.Element root)
Constructor creates a new instance. |
Method Summary | |
---|---|
static LicenseReference |
createFrom(org.w3c.dom.Element rootNode)
Method creates the license ref from document. |
static LicenseReference |
createFrom(java.io.InputStream stream)
Method creates a license reference from a stream. |
static LicenseReference |
createFrom(java.io.Reader reader)
Method creates a license reference from a reader. |
static LicenseReference |
createFrom(java.lang.String ref)
Method creates licenes ref from a string. |
boolean |
equals(java.lang.Object o)
Method equals. |
java.lang.String |
getLicenseId()
Method gets the licenseId. |
java.lang.String |
getLicenseManagerUrl()
Method gets the licenseManagerUrl. |
org.w3c.dom.Element |
getReference()
Method gets the license reference. |
java.lang.String |
getReferenceAsBase64EncodedString()
Returns license reference element as Base64 encoded string. |
java.lang.String |
getSAMLAttributeValue(java.lang.String attributeName)
Method getSAMLAttributeValue searches for the given attributeName in the license reference. |
int |
hashCode()
Method hashCode. |
java.lang.String |
referenceAsString()
Method gets the element reference as a string. |
java.lang.String |
toString()
|
void |
validate()
Method validates the usage properties of this reference. |
void |
validate(long timeDelta)
Method validates the usage properties of this reference, with respect to time clock differences. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NAMESPACE_LICENSE
Constructor Detail |
---|
public LicenseReference(org.w3c.dom.Element root)
root
- the root.Method Detail |
---|
public org.w3c.dom.Element getReference()
public java.lang.String getLicenseId()
public java.lang.String getLicenseManagerUrl()
public void validate() throws java.lang.RuntimeException
java.lang.RuntimeException
- if error occurs.public void validate(long timeDelta) throws java.lang.RuntimeException
timeDelta
- allowed delta in msec.
java.lang.RuntimeException
- if error occurs.public java.lang.String getSAMLAttributeValue(java.lang.String attributeName)
attributeName
- the attributeName.
public static LicenseReference createFrom(java.io.InputStream stream)
stream
- the stream.
public static LicenseReference createFrom(java.io.Reader reader)
reader
- the reader.
public static LicenseReference createFrom(java.lang.String ref)
createFrom(java.io.Reader)
called with a
StringReader. In case string is base 64 encoded it will be decoded first.
ref
- the ref.
public static LicenseReference createFrom(org.w3c.dom.Element rootNode)
rootNode
- the rootNode.
public java.lang.String referenceAsString()
public java.lang.String getReferenceAsBase64EncodedString()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the o.
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |