A B C D E F G I J K M O P Q R S T V W

A

addAttribute(AttributeStatement, String, String) - Method in class cc.saml.SAML
Adds a SAML attribute to an attribute statement.
addToElement(XMLObject, Element) - Static method in class cc.saml.SAML
Helper method to add an XMLObject as a child of a DOM Element.
algEquals(String, String) - Static method in class cc.saml.SAMLSignature
Test that a formal URI expresses the same algorithm as a conventional short name such as "DSA" or "RSA".
appendHexValue(StringBuffer, byte) - Static method in class cc.security.KeyStoreUtil
Helper method that converts a single byte to a hex string representation.
appendHexValue(StringBuffer, byte[]) - Static method in class cc.security.KeyStoreUtil
Helper that appends a hex representation of a byte array to an existing StringBuffer.
asDOMDocument(XMLObject) - Method in class cc.saml.SAML
Helper method to get an XMLObject as a DOM Document.

B

builder - Variable in class cc.saml.SAML
 

C

cc.saml - package cc.saml
SAML utilities and examples.
cc.security - package cc.security
Various code utilities for working with J2SE security and JAAS.
cc.xml - package cc.xml
XML utilities.
characters(char[], int, int) - Method in class cc.xml.PrettyPrinter
When the PrettyPrinter.currentValue buffer is enabled, appends character data into it, to be gathered when the element end tag is encountered.
CM_PREFIX - Static variable in class cc.saml.SAML
 
create(Class<T>, QName) - Method in class cc.saml.SAML
Slightly easier way to create objects using OpenSAML's builder system.
createAssertion(Subject) - Method in class cc.saml.SAML
Returns a SAML assertion with generated ID, current timestamp, given subject, and simple time-based conditions.
createAttributeAssertion(Subject, Map<String, String>) - Method in class cc.saml.SAML
Returns a SAML attribute assertion.
createAuthnAssertion(Subject, String) - Method in class cc.saml.SAML
Returns a SAML authentication assertion.
createResponse(Assertion) - Method in class cc.saml.SAML
Helper method to generate a response, based on a pre-built assertion.
createResponse(String, String) - Method in class cc.saml.SAML
Helper method to generate a shell response with a given status code and query ID.
createResponse(String, String, String) - Method in class cc.saml.SAML
Helper method to generate a shell response with a given status code, status message, and query ID.
createResponse(Assertion, String) - Method in class cc.saml.SAML
Helper method to generate a response, based on a pre-built assertion and query ID.
createStockAttributeAssertion() - Method in class cc.saml.SAMLAssertion
Creates a file whose contents are a SAML attribute assertion.
createStockAttributeQuery() - Method in class cc.saml.SAMLProtocol
Creates a file whose contents are a SAML attribute query.
createStockAuthnAssertion() - Method in class cc.saml.SAMLAssertion
Creates a file whose contents are a SAML authentication assertion.
createStockAuthnQuery() - Method in class cc.saml.SAMLProtocol
Creates a file whose contents are a SAML authentication query.
createStockAuthzDecisionAssertion() - Method in class cc.saml.SAMLAssertion
Creates a file whose contents are a SAML authorization-decision assertion.
createStockAuthzDecisionQuery() - Method in class cc.saml.SAMLProtocol
Creates a file whose contents are a SAML authorization-decision query.
createSubject(String, String, String) - Method in class cc.saml.SAML
Returns a SAML subject.
currentValue - Variable in class cc.xml.PrettyPrinter
A buffer for character data.

D

die() - Static method in class cc.saml.SAMLAssertion
 
die() - Static method in class cc.saml.SAMLBinding
 
die() - Static method in class cc.saml.SAMLProtocol
 

E

endDocument() - Method in class cc.xml.PrettyPrinter
Prints a blank line at the end of the reformatted document.
endElement(String, String, String) - Method in class cc.xml.PrettyPrinter
Checks the PrettyPrinter.currentValue buffer to gather element content.
endLine - Static variable in class cc.security.KeyStoreUtil
 
endLine - Static variable in class cc.xml.PrettyPrinter
 
escape(char[], int, int) - Static method in class cc.xml.PrettyPrinter
Filter to pass strings to output, escaping < and & characters to &lt; and &amp; respectively.

F

factory - Variable in class cc.saml.SAMLSignature
 
finalDestination - Variable in class cc.xml.PrettyPrinter.StreamAdapter
 
flushPretty() - Method in class cc.xml.PrettyPrinter.StreamAdapter
 
fromElement(Element) - Static method in class cc.saml.SAML
Helper method to read an XML object from a DOM element.

G

generator - Static variable in class cc.saml.SAML
 
getAliases(KeyStore) - Static method in class cc.security.KeyStoreUtil
List all the key and certificate aliases in the keystore.
getCertificate(KeyStore, String) - Static method in class cc.security.KeyStoreUtil
Get a certificate from the keystore by name.
getKey() - Method in class cc.saml.SAMLSignature.SimpleKeySelectorResult
 
getKey(KeyStore, String, String) - Static method in class cc.security.KeyStoreUtil
Get a private key from the keystore by name and password.
getKeyStore(String, String) - Static method in class cc.security.KeyStoreUtil
Get a KeyStore object given the keystore filename and password.
getKeyStore(InputStream, String) - Static method in class cc.security.KeyStoreUtil
Get a KeyStore object given the keystore filename and password.
getUserInput(String) - Static method in class cc.security.KeyStoreUtil
Helper method to solicit a line of user input from the console.

I

indent - Variable in class cc.xml.PrettyPrinter
This whitespace string is expanded and collapsed to manage the output indenting.
issuerURL - Variable in class cc.saml.SAML
 

J

justHitStartTag - Variable in class cc.xml.PrettyPrinter
 

K

keyInfo - Variable in class cc.saml.SAMLSignature
 
keyPair - Variable in class cc.saml.SAMLSignature
 
keyStore - Variable in class cc.saml.SAMLSignature
 
KeyStoreUtil - Class in cc.security
Simple utility for managing common KeyStore tasks.
KeyStoreUtil() - Constructor for class cc.security.KeyStoreUtil
 

M

main(String[]) - Static method in class cc.saml.SAML
Parse the command line for a filename to read, and optionally a filename to write (absent which the application will write to the console).
main(String[]) - Static method in class cc.saml.SAMLAssertion
Parse the command line for instructions to write or read one of the three types of assertions and for a target filename.
main(String[]) - Static method in class cc.saml.SAMLBinding
Parses the command line for instructions to write a SAML request or response in one of the three main types, and for a base filename.
main(String[]) - Static method in class cc.saml.SAMLProtocol
Parses the command line for instructions to write a SAML query or response in one of the three main types, and for a base filename.
main(String[]) - Static method in class cc.saml.SAMLSignature
Parse the command line for a filename to read, and optionally a filename to write (absent which the application will write to the console).
main(String[]) - Static method in class cc.security.KeyStoreUtil
As an application, this class will operate something like the keytool -list command: it will read out every alias in the keystore, and with the user's provided password for a given key will write out all data on the key and/or certificate.

O

out - Variable in class cc.xml.PrettyPrinter.StreamAdapter
 
output - Variable in class cc.xml.PrettyPrinter
The primary buffer for accumulating the formatted XML.

P

pk - Variable in class cc.saml.SAMLSignature.SimpleKeySelectorResult
 
prettyPrint(byte[]) - Static method in class cc.xml.PrettyPrinter
Convenience method to wrap pretty-printing SAX pass over existing content.
prettyPrint(String) - Static method in class cc.xml.PrettyPrinter
Convenience method to wrap pretty-printing SAX pass over existing content.
prettyPrint(InputStream) - Static method in class cc.xml.PrettyPrinter
Convenience method to wrap pretty-printing SAX pass over existing content.
prettyPrint(Document) - Static method in class cc.xml.PrettyPrinter
Convenience method to wrap pretty-printing SAX pass over existing content.
PrettyPrinter - Class in cc.xml
This class "pretty prints" an XML stream to something more human-readable.
PrettyPrinter() - Constructor for class cc.xml.PrettyPrinter
 
PrettyPrinter.StreamAdapter - Class in cc.xml
 
PrettyPrinter.StreamAdapter(Writer) - Constructor for class cc.xml.PrettyPrinter.StreamAdapter
 
printResponse(Assertion, String) - Method in class cc.saml.SAMLProtocol
Helper method to generate and pretty-print a response, based on a given query (for our inResponseTo value) and an assertion.
printToFile(XMLObject, String) - Method in class cc.saml.SAML
Helper method to pretty-print any XML object to a file.

Q

QUERY_SUFFIX - Static variable in class cc.saml.SAMLProtocol
 

R

readAttributeAssertion(String) - Method in class cc.saml.SAMLAssertion
Parses a SAML attribute assertion as found in a file, and prints out all attributes.
readAuthnAssertion(String) - Method in class cc.saml.SAMLAssertion
Parses a SAML authentication assertion as found in a file, and prints out information about issuer, subject, and authentication context.
readAuthzDecisionAssertion(String) - Method in class cc.saml.SAMLAssertion
Parses a SAML authorization-decision assertion as found in a file, and prints out the essential information.
readFromFile(String) - Method in class cc.saml.SAML
Helper method to read an XML object from a file.
REQUEST_SUFFIX - Static variable in class cc.saml.SAMLBinding
 
RESPONSE_SUFFIX - Static variable in class cc.saml.SAMLBinding
 
RESPONSE_SUFFIX - Static variable in class cc.saml.SAMLProtocol
 

S

SAML - Class in cc.saml
Utility that uses OpenSAML to carry out common SAML tasks.
SAML() - Constructor for class cc.saml.SAML
Initialize JAXP DocumentBuilder instance for later use and reuse.
SAML(String) - Constructor for class cc.saml.SAML
Initialize JAXP DocumentBuilder instance for later use and reuse, and establishes an issuer URL.
SAMLAssertion - Class in cc.saml
Simple examples of coding to the OpenSAML API.
SAMLAssertion() - Constructor for class cc.saml.SAMLAssertion
 
SAMLBinding - Class in cc.saml
Simple examples of coding to the OpenSAML API.
SAMLBinding() - Constructor for class cc.saml.SAMLBinding
 
SAMLProtocol - Class in cc.saml
Simple examples of coding to the OpenSAML API.
SAMLProtocol() - Constructor for class cc.saml.SAMLProtocol
 
SAMLSignature - Class in cc.saml
Utility for signing SAML DOM objects (assertions, requests, and responses) and for validating and checking signatures on SAML DOM objects.
SAMLSignature() - Constructor for class cc.saml.SAMLSignature
Loads a keystore and builds a stock key-info structure for use by base classes.
SAMLSignature.KeyValueKeySelector - Class in cc.saml
KeySelector that can handle KeyValue and X509Data info.
SAMLSignature.KeyValueKeySelector() - Constructor for class cc.saml.SAMLSignature.KeyValueKeySelector
 
SAMLSignature.SimpleKeySelectorResult - Class in cc.saml
Data structure returned by the key selector to the validation context.
SAMLSignature.SimpleKeySelectorResult(PublicKey) - Constructor for class cc.saml.SAMLSignature.SimpleKeySelectorResult
 
select(KeyInfo, KeySelector.Purpose, AlgorithmMethod, XMLCryptoContext) - Method in class cc.saml.SAMLSignature.KeyValueKeySelector
 
signSAMLObject(Element) - Method in class cc.saml.SAMLSignature
Adds an enveloped signature to the given element.
spawnIssuer() - Method in class cc.saml.SAML
Helper method to spawn a new Issuer element based on our issuer URL.
spillBeans(Key) - Static method in class cc.security.KeyStoreUtil
Dump all data about the private key to the console.
spillBeans(Certificate) - Static method in class cc.security.KeyStoreUtil
Dump all data about the certificate to the console.
standardIndent - Static variable in class cc.xml.PrettyPrinter
 
startDocument() - Method in class cc.xml.PrettyPrinter
Prints the XML declaration.
startElement(String, String, String, Attributes) - Method in class cc.xml.PrettyPrinter
Writes the start tag for the element.

T

toString() - Method in class cc.xml.PrettyPrinter
Call this to get the formatted XML post-parsing.

V

verifySAMLSignature(Element) - Method in class cc.saml.SAMLSignature
Seeks out the signature element in the given tree, and validates it.

W

wrapAndPrintResponse(Assertion, String) - Method in class cc.saml.SAMLBinding
Helper method to generate and pretty-print a SOAP response envelope, based on a given request envelope (for our inResponseTo value) and a pre-built assertion.
wrapAndPrintToFile(XMLObject, String) - Method in class cc.saml.SAMLBinding
Helper method to generate and pretty-print a SOAP envelope, based on an XML object and a filename.
write(int) - Method in class cc.xml.PrettyPrinter.StreamAdapter
 
writeFiles(Document, String) - Method in class cc.saml.SAMLSignature
Helper method to write two output files from a given DOM tree: one is the raw output and one is pretty-printed and given the suffix "_pretty" before the ".xml" extension.

A B C D E F G I J K M O P Q R S T V W