|
Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.5) Part Number E13941-05 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectweblogic.xml.security.specs.SecuritySpec
public class SecuritySpec
The class represents the top level node of a SecuritySpec. The SecuritySpec is used to described desired WSSE Security elements, independent of the WSSE version. These are specs are the basis of inbound and outbound policy in WLS. Created: Sat Aug 10 18:10:49 2002
| Field Summary | |
|---|---|
static String |
DEFAULT_SPEC_ID
Deprecated. |
| Constructor Summary | |
|---|---|
SecuritySpec()
Deprecated. |
|
SecuritySpec(String name,
String targetNS)
Deprecated. Creates a new SecuritySpec instance. |
|
SecuritySpec(String name,
String targetNS,
String actorURI)
Deprecated. Creates a new SecuritySpec instance. |
|
| Method Summary | |
|---|---|
Security |
createSecurity(String role,
TimestampConfig tsConfig,
String username,
String password,
X509Certificate encryptCert,
PrivateKey sigKey,
X509Certificate sigCert,
SecurityElementFactory factory)
Deprecated. |
boolean |
getEnablePasswordAuth()
Deprecated. Returns whether Password based auth has been enabled for this spec. |
EncryptionSpec |
getEncryptionSpec()
Deprecated. Returns the EncryptionSpec for this SecuritySpec |
String |
getId()
Deprecated. Returns the id for this SecuritySpec |
String |
getRole()
Deprecated. Returns the role for this SecuritySpec |
SignatureSpec |
getSignatureSpec()
Deprecated. Returns the SignatureSpec for this SecuritySpec |
BinarySecurityTokenSpec |
setBinarySecurityTokenSpec(BinarySecurityTokenSpec spec)
Deprecated. addBinarySecurityTokenSpec adds a spec for a
BinarySecurityTokenImpl to the SecuritySpec. |
BinarySecurityTokenSpec |
setBinarySecurityTokenSpec(String type)
Deprecated. addBinarySecurityTokenSpec adds a spec for a
BinarySecurityTokenImpl to the SecuritySpec. |
void |
setEnablePasswordAuth(boolean enable)
Deprecated. enables plain text password auth for this SecuritySpec |
EncryptionSpec |
setEncryptionSpec(EncryptionSpec spec)
Deprecated. |
EncryptionSpec |
setEncryptionSpec(String encryptionURI,
X509Certificate cert)
Deprecated. addEncryptionSpec adds a spec for encrypted data to
the SecuritySpec. |
EncryptionSpec |
setEncryptionSpec(String encryptionURI,
X509Certificate cert,
boolean encryptBody)
Deprecated. addEncryptionSpec adds a spec for encrypted data to
the SecuritySpec. |
void |
setId(String id)
Deprecated. |
void |
setNamespace(String namespace)
Deprecated. |
void |
setRole(String role)
Deprecated. |
SignatureSpec |
setSignatureSpec(SignatureSpec spec)
Deprecated. setSignatureSpec adds the provided signatureSpec
to this SecuritySpec |
SignatureSpec |
setSignatureSpec(String canonicalizationURI,
String signatureURI)
Deprecated. setSignatureSpec adds a SignatureSpec to the
SecuritySpec element. |
SignatureSpec |
setSignatureSpec(String canonicalizationURI,
String signatureURI,
boolean signedBody)
Deprecated. setSignatureSpec adds a SignatureSpec to the
SecuritySpec element. |
UsernameTokenSpec |
setUsernameTokenSpec(String passwordType)
Deprecated. setUsernameTokenSpec adds a UsernameTokenSpec to the
SecuritySpec element. |
UsernameTokenSpec |
setUsernameTokenSpec(String passwordType,
String realm)
Deprecated. setUsernameTokenSpec adds a UsernameTokenSpec to the
SecuritySpec element. |
UsernameTokenSpec |
setUsernameTokenSpec(UsernameTokenSpec spec)
Deprecated. setUsernameTokenSpec adds a UsernameTokenSpec to the
SecuritySpec element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_SPEC_ID
| Constructor Detail |
|---|
public SecuritySpec()
public SecuritySpec(String name,
String targetNS)
SecuritySpec instance.
name - a String valuetargetNS - a String value identifying the
namespace to be used for Security elements.
public SecuritySpec(String name,
String targetNS,
String actorURI)
SecuritySpec instance.
name - a String valuetargetNS - a String value identifying the
namespace to be used for Security elements.actorURI - a String value identifying the the
target Actor for the Security Element.| Method Detail |
|---|
public void setRole(String role)
public void setId(String id)
public void setNamespace(String namespace)
public SignatureSpec setSignatureSpec(String canonicalizationURI,
String signatureURI)
setSignatureSpec adds a SignatureSpec to the
SecuritySpec element. The SignatureSpec can be further
configured using the returned instance.
canonicalizationURI - a String value that is
URI of the canonicalization method to be used in the signaturesignatureURI - a String value that is the URI
of the signature method to be used for the signature.
SignatureSpec value
public SignatureSpec setSignatureSpec(String canonicalizationURI,
String signatureURI,
boolean signedBody)
setSignatureSpec adds a SignatureSpec to the
SecuritySpec element. The SignatureSpec can be further
configured using the returned instance.
canonicalizationURI - a String value that is
URI of the canonicalization method to be used in the signaturesignatureURI - a String value that is the URI
of the signature method to be used for the signature.signedBody - indicates whether the operation should cover the SOAP Body.
SignatureSpec valuepublic SignatureSpec setSignatureSpec(SignatureSpec spec)
setSignatureSpec adds the provided signatureSpec
to this SecuritySpec
spec - a SignatureSpec
public UsernameTokenSpec setUsernameTokenSpec(String passwordType)
setUsernameTokenSpec adds a UsernameTokenSpec to the
SecuritySpec element.
passwordType - a String value
UsernameTokenSpec value
public UsernameTokenSpec setUsernameTokenSpec(String passwordType,
String realm)
setUsernameTokenSpec adds a UsernameTokenSpec to the
SecuritySpec element.
passwordType - a String valuerealm - a String value
UsernameTokenSpec valuepublic UsernameTokenSpec setUsernameTokenSpec(UsernameTokenSpec spec)
setUsernameTokenSpec adds a UsernameTokenSpec to the
SecuritySpec element.
spec -
public BinarySecurityTokenSpec setBinarySecurityTokenSpec(String type)
addBinarySecurityTokenSpec adds a spec for a
BinarySecurityTokenImpl to the SecuritySpec.
type - a String value indicating the type of
BST to be included (i.e. X509Certificate)
UsernameTokenSpec valuepublic BinarySecurityTokenSpec setBinarySecurityTokenSpec(BinarySecurityTokenSpec spec)
addBinarySecurityTokenSpec adds a spec for a
BinarySecurityTokenImpl to the SecuritySpec.
spec -
public EncryptionSpec setEncryptionSpec(String encryptionURI,
X509Certificate cert)
addEncryptionSpec adds a spec for encrypted data to
the SecuritySpec.
encryptionURI - a String value that is the URI
of the encryption algorith to be used.cert - a java.security.cert.X509Certificate
value that is the certificate of the receiver.
UsernameTokenSpec value
public EncryptionSpec setEncryptionSpec(String encryptionURI,
X509Certificate cert,
boolean encryptBody)
addEncryptionSpec adds a spec for encrypted data to
the SecuritySpec.
encryptionURI - a String value that is the URI
of the encryption algorith to be used.cert - a java.security.cert.X509Certificate
value that is the certificate of the receiver.encryptBody - indicates whether the operation should cover the entire SOAP Body.
UsernameTokenSpec valuepublic EncryptionSpec setEncryptionSpec(EncryptionSpec spec)
public String getRole()
public String getId()
public void setEnablePasswordAuth(boolean enable)
enable - public boolean getEnablePasswordAuth()
public SignatureSpec getSignatureSpec()
public EncryptionSpec getEncryptionSpec()
public final Security createSecurity(String role,
TimestampConfig tsConfig,
String username,
String password,
X509Certificate encryptCert,
PrivateKey sigKey,
X509Certificate sigCert,
SecurityElementFactory factory)
|
Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.5) Part Number E13941-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||