Package org.opensaml

Examples of org.opensaml.SAMLRequest


         SAMLSubject subject = new SAMLSubject();
         subject.setNameIdentifier(id);     
         SAMLAuthenticationQuery query = new SAMLAuthenticationQuery(subject,
               SAMLAuthenticationStatement.AuthenticationMethod_Password);
        
         SAMLRequest authRequest = new SAMLRequest(query);
         request = authRequest.toString();
        
         return request;
      }
      catch(SAMLException sme)
      {
View Full Code Here


      try
      {
         SSOUser user = null;
        
         bis = new ByteArrayInputStream(request.getBytes());
         SAMLRequest authRequest = new SAMLRequest(bis);
        
        
         SAMLAuthenticationQuery query = (SAMLAuthenticationQuery)authRequest.getQuery();
         SAMLSubject subject = query.getSubject();
        
         //get the SAMLNameIdentifier
         SAMLNameIdentifier id = subject.getNameIdentifier();
         String username = id.getName();
View Full Code Here

TOP

Related Classes of org.opensaml.SAMLRequest

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.