org.eclipse.higgins.util.saml
Class XMLElement
java.lang.Object
org.eclipse.higgins.util.saml.XMLElement
- Direct Known Subclasses:
- SAML2AuthnRequest, SAML2AuthnStatement, SAML2Response, SAMLAssertion, SAMLAttribute, SAMLAttributes, SAMLConditions, SAMLSubject
- public abstract class XMLElement
- extends Object
PROVIDER_JSR105
public static final String PROVIDER_JSR105
- See Also:
- Constant Field Values
getDocument
public Document getDocument()
getElement
public Element getElement()
getNameSpace
public String getNameSpace()
dump
public String dump()
throws IOException
- Throws:
IOException
toString
public String toString()
hasSignature
public boolean hasSignature()
hasKeyInfo
public boolean hasKeyInfo()
sign
public void sign(PrivateKey privateKey,
PublicKey publicKey)
throws KeyException,
NoSuchAlgorithmException,
InvalidAlgorithmParameterException,
javax.xml.crypto.MarshalException,
javax.xml.crypto.dsig.XMLSignatureException
- Throws:
KeyException
NoSuchAlgorithmException
InvalidAlgorithmParameterException
javax.xml.crypto.MarshalException
javax.xml.crypto.dsig.XMLSignatureException
sign
public void sign(PrivateKey privateKey)
throws NoSuchAlgorithmException,
InvalidAlgorithmParameterException,
javax.xml.crypto.MarshalException,
javax.xml.crypto.dsig.XMLSignatureException,
KeyException
- Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException
javax.xml.crypto.MarshalException
javax.xml.crypto.dsig.XMLSignatureException
KeyException
verify
public void verify(PublicKey publicKey)
throws javax.xml.crypto.MarshalException,
javax.xml.crypto.dsig.XMLSignatureException,
XMLElement.VerificationException
- Throws:
javax.xml.crypto.MarshalException
javax.xml.crypto.dsig.XMLSignatureException
XMLElement.VerificationException
verifyFromKeyInfo
public void verifyFromKeyInfo()
throws javax.xml.crypto.MarshalException,
javax.xml.crypto.dsig.XMLSignatureException,
XMLElement.VerificationException
- Throws:
javax.xml.crypto.MarshalException
javax.xml.crypto.dsig.XMLSignatureException
XMLElement.VerificationException
getTextContent
public static String getTextContent(Element element)
setTextContent
public static void setTextContent(Element element,
String value)
getID
public String getID()
setID
public void setID(String value)
createID
public static String createID()
fromXMLDate
public static Date fromXMLDate(String date)
throws ParseException
- Throws:
ParseException
toXMLDate
public static String toXMLDate(Date date)
addNamespaceAttributes
public static void addNamespaceAttributes(Document document)