org.apache.ws.security.str
Class BSPEnforcer

java.lang.Object
  extended by org.apache.ws.security.str.BSPEnforcer

public final class BSPEnforcer
extends Object

This class enforces processing rules for SecurityTokenReferences to various token elements, according to the Basic Security Profile (BSP) specification.


Method Summary
static void checkBinarySecurityBSPCompliance(SecurityTokenReference secRef, BinarySecurity token)
          Check that the BinarySecurityToken referenced by the SecurityTokenReference argument is BSP compliant.
static void checkEncryptedKeyBSPCompliance(SecurityTokenReference secRef)
          Check that the EncryptedKey referenced by the SecurityTokenReference argument is BSP compliant.
static void checkSamlTokenBSPCompliance(SecurityTokenReference secRef, AssertionWrapper assertion)
          Check that the SAML token referenced by the SecurityTokenReference argument is BSP compliant.
static void checkUsernameTokenBSPCompliance(SecurityTokenReference secRef)
          Check that the Username token referenced by the SecurityTokenReference argument is BSP compliant.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkBinarySecurityBSPCompliance

public static void checkBinarySecurityBSPCompliance(SecurityTokenReference secRef,
                                                    BinarySecurity token)
                                             throws WSSecurityException
Check that the BinarySecurityToken referenced by the SecurityTokenReference argument is BSP compliant.

Parameters:
secRef - The SecurityTokenReference to the BinarySecurityToken
token - The BinarySecurityToken
Throws:
WSSecurityException

checkEncryptedKeyBSPCompliance

public static void checkEncryptedKeyBSPCompliance(SecurityTokenReference secRef)
                                           throws WSSecurityException
Check that the EncryptedKey referenced by the SecurityTokenReference argument is BSP compliant.

Parameters:
secRef - The SecurityTokenReference to the BinarySecurityToken
Throws:
WSSecurityException

checkSamlTokenBSPCompliance

public static void checkSamlTokenBSPCompliance(SecurityTokenReference secRef,
                                               AssertionWrapper assertion)
                                        throws WSSecurityException
Check that the SAML token referenced by the SecurityTokenReference argument is BSP compliant.

Parameters:
secRef - The SecurityTokenReference to the SAML token
assertion - The SAML Token AssertionWrapper object
Throws:
WSSecurityException

checkUsernameTokenBSPCompliance

public static void checkUsernameTokenBSPCompliance(SecurityTokenReference secRef)
                                            throws WSSecurityException
Check that the Username token referenced by the SecurityTokenReference argument is BSP compliant.

Parameters:
secRef - The SecurityTokenReference to the Username token
Throws:
WSSecurityException


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.