Package org.opensaml

Examples of org.opensaml.SAMLNameIdentifier


            return this.createAttributeAssertion(doc, encryptedKeyElem, config,
                    crypto, creationTime, expirationTime);
        } else {
            try {
                String subjectNameId = data.getPrincipal().getName();
                SAMLNameIdentifier nameId = new SAMLNameIdentifier(
                        subjectNameId, null, SAMLNameIdentifier.FORMAT_EMAIL);

                // Create the ds:KeyValue element with the ds:X509Data
                byte[] clientCertBytes = data.getClientCert().getEncoded();
                String base64Cert = Base64.encode(clientCertBytes);
View Full Code Here


        String name =
                properties.getProperty("org.apache.ws.security.saml.subjectNameId.name");
        String qualifier =
                properties.getProperty("org.apache.ws.security.saml.subjectNameId.qualifier");
        try {
            SAMLNameIdentifier nameId =
                    new SAMLNameIdentifier(name, qualifier, "");
            String subjectIP = null;
            String authMethod = null;
            if ("password"
                    .equals(properties.getProperty("org.apache.ws.security.saml.authenticationMethod"))) {
                authMethod =
View Full Code Here

            Principal principal = data.getPrincipal();
            // In the case where the principal is a UT
            if (principal instanceof WSUsernameTokenPrincipal) {
                // TODO: Find the email address
                String subjectNameId = "ruchithf@apache.org";
                SAMLNameIdentifier nameId = new SAMLNameIdentifier(
                        subjectNameId, null, SAMLNameIdentifier.FORMAT_EMAIL);
                return createAuthAssertion(doc, SAMLSubject.CONF_BEARER,
                                           nameId, null, config, crypto, creationTime,
                                           expirationTime);
            } else {
View Full Code Here

            return this.createAttributeAssertion(doc, encryptedKeyElem,
                                                 config, crypto, creationTime, expirationTime);
        } else {
            try {
                String subjectNameId = data.getPrincipal().getName();
                SAMLNameIdentifier nameId = new SAMLNameIdentifier(subjectNameId,
                                                                   null,
                                                                   SAMLNameIdentifier.FORMAT_EMAIL);

                //Create the ds:KeyValue element with the ds:X509Data
                byte[] clientCertBytes = data.getClientCert().getEncoded();
View Full Code Here

TOP

Related Classes of org.opensaml.SAMLNameIdentifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.