/** * Get the SignatureValue bytes of the signed SAML Assertion * @return the SignatureValue bytes of the signed SAML Assertion * @throws WSSecurityException */ public byte[] getSignatureValue() throws WSSecurityException { Signature sig = null; if (samlObject instanceof SignableSAMLObject) { sig = ((SignableSAMLObject)samlObject).getSignature(); } if (sig != null) { return getSignatureValue(sig); } return null; }
private void storeTokenInCache( TokenStore tokenStore, SamlAssertionWrapper assertion, Principal principal, String tokenRealm ) throws WSSecurityException { // Store the successfully validated token in the cache byte[] signatureValue = assertion.getSignatureValue(); if (tokenStore != null && signatureValue != null && signatureValue.length > 0) { SecurityToken securityToken = CacheUtils.createSecurityTokenForStorage(assertion.getElement(), assertion.getId(), assertion.getNotOnOrAfter(), principal, tokenRealm, null); CacheUtils.storeTokenInCache(securityToken, tokenStore, signatureValue); } }
private void storeTokenInCache( TokenStore tokenStore, SamlAssertionWrapper assertion, Principal principal, String tokenRealm ) throws WSSecurityException { // Store the successfully validated token in the cache byte[] signatureValue = assertion.getSignatureValue(); if (tokenStore != null && signatureValue != null && signatureValue.length > 0) { SecurityToken securityToken = CacheUtils.createSecurityTokenForStorage(assertion.getElement(), assertion.getId(), assertion.getNotOnOrAfter(), principal, tokenRealm, null); CacheUtils.storeTokenInCache(securityToken, tokenStore, signatureValue); } }
private void storeTokenInCache( TokenStore tokenStore, SamlAssertionWrapper assertion, Principal principal, TokenRenewerParameters tokenParameters ) throws WSSecurityException { // Store the successfully renewed token in the cache byte[] signatureValue = assertion.getSignatureValue(); if (tokenStore != null && signatureValue != null && signatureValue.length > 0) { SecurityToken securityToken = CacheUtils.createSecurityTokenForStorage(assertion.getElement(), assertion.getId(), assertion.getNotOnOrAfter(), tokenParameters.getPrincipal(), tokenParameters.getRealm(), tokenParameters.getTokenRequirements().getRenewing()); CacheUtils.storeTokenInCache( securityToken, tokenParameters.getTokenStore(), signatureValue); } }
private void storeTokenInCache( TokenStore tokenStore, SamlAssertionWrapper assertion, Principal principal, TokenRenewerParameters tokenParameters ) throws WSSecurityException { // Store the successfully renewed token in the cache byte[] signatureValue = assertion.getSignatureValue(); if (tokenStore != null && signatureValue != null && signatureValue.length > 0) { SecurityToken securityToken = CacheUtils.createSecurityTokenForStorage(assertion.getElement(), assertion.getId(), assertion.getNotOnOrAfter(), tokenParameters.getPrincipal(), tokenParameters.getRealm(), tokenParameters.getTokenRequirements().getRenewing()); CacheUtils.storeTokenInCache( securityToken, tokenParameters.getTokenStore(), signatureValue); } }
byte[] signatureValue = assertion.getSignatureValue(); if (tokenParameters.getTokenStore() != null && signatureValue != null && signatureValue.length > 0) {
SamlAssertionWrapper assertion = new SamlAssertionWrapper((Element)tokenToRenew.getToken()); byte[] oldSignature = assertion.getSignatureValue(); int hash = Arrays.hashCode(oldSignature); SecurityToken cachedToken = tokenStore.getToken(Integer.toString(hash));
SamlAssertionWrapper assertion = new SamlAssertionWrapper((Element)tokenToRenew.getToken()); byte[] oldSignature = assertion.getSignatureValue(); int hash = Arrays.hashCode(oldSignature); SecurityToken cachedToken = tokenStore.getToken(Integer.toString(hash));
byte[] signatureValue = assertion.getSignatureValue(); if (tokenParameters.getTokenStore() != null && signatureValue != null && signatureValue.length > 0) {
byte[] signatureValue = assertion.getSignatureValue(); if (tokenParameters.getTokenStore() != null && signatureValue != null && signatureValue.length > 0) {
byte[] signatureValue = assertion.getSignatureValue(); if (tokenParameters.getTokenStore() != null && signatureValue != null && signatureValue.length > 0) {
if (credential.getSamlAssertion() != null) { SamlAssertionWrapper assertion = credential.getSamlAssertion(); byte[] signatureValue = assertion.getSignatureValue(); if (signatureValue != null && signatureValue.length > 0) { hash = Arrays.hashCode(signatureValue);
if (credential.getSamlAssertion() != null) { SamlAssertionWrapper assertion = credential.getSamlAssertion(); byte[] signatureValue = assertion.getSignatureValue(); if (signatureValue != null && signatureValue.length > 0) { hash = Arrays.hashCode(signatureValue);