Examples of SecurityTokenUnavailableException


Examples of org.jboss.ws.extensions.security.exception.SecurityTokenUnavailableException

   {
      String id = direct.getUri().substring(1);

      BinarySecurityToken token = tokenCache.get(id);
      if (token == null)
         throw new SecurityTokenUnavailableException("Could not resolve token id: " + id);

      return token;
   }
View Full Code Here

Examples of org.jboss.ws.extensions.security.exception.SecurityTokenUnavailableException

   private BinarySecurityToken resolveKeyIdentifier(KeyIdentifier identifier) throws WSSecurityException
   {
      // Support only SKI at the moment
      X509Certificate cert = store.getCertificateBySubjectKeyIdentifier(identifier.getIdentifier());
      if (cert == null)
         throw new SecurityTokenUnavailableException("Could not locate certificate by key identifier");
      return new X509Token(cert, identifier.getDocument());
   }
View Full Code Here

Examples of org.jboss.ws.extensions.security.exception.SecurityTokenUnavailableException

   private BinarySecurityToken resolveX509IssuerSerial(X509IssuerSerial issuerSerial) throws WSSecurityException
   {
      X509Certificate cert = store.getCertificateByIssuerSerial(issuerSerial.getIssuer(), issuerSerial.getSerial());
     if (cert == null)
        throw new SecurityTokenUnavailableException("Could not locate certificate by issuer and serial number");

     return new X509Token(cert, issuerSerial.getDocument());
   }
View Full Code Here

Examples of org.jboss.ws.extensions.security.exception.SecurityTokenUnavailableException

   {
      String id = direct.getUri().substring(1);

      BinarySecurityToken token = tokenCache.get(id);
      if (token == null)
         throw new SecurityTokenUnavailableException("Could not resolve token id: " + id);

      return token;
   }
View Full Code Here

Examples of org.jboss.ws.extensions.security.exception.SecurityTokenUnavailableException

   private BinarySecurityToken resolveKeyIdentifier(KeyIdentifier identifier) throws WSSecurityException
   {
      // Support only SKI at the moment
      X509Certificate cert = store.getCertificateBySubjectKeyIdentifier(identifier.getIdentifier());
      if (cert == null)
         throw new SecurityTokenUnavailableException("Could not locate certificate by key identifier");
      return new X509Token(cert, identifier.getDocument());
   }
View Full Code Here

Examples of org.jboss.ws.extensions.security.exception.SecurityTokenUnavailableException

   private BinarySecurityToken resolveX509IssuerSerial(X509IssuerSerial issuerSerial) throws WSSecurityException
   {
      X509Certificate cert = store.getCertificateByIssuerSerial(issuerSerial.getIssuer(), issuerSerial.getSerial());
     if (cert == null)
        throw new SecurityTokenUnavailableException("Could not locate certificate by issuer and serial number");

     return new X509Token(cert, issuerSerial.getDocument());
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.