org.opensaml.ws.transport
public abstract class BaseTransport extends Object implements Transport
Transport
that provides local storage for all transport properties.Modifier and Type | Field and Description |
---|---|
private Map<String,Object> |
attributes
Transport attributes.
|
private boolean |
authenticated
Authenticated flag.
|
private String |
characterEncoding
Character encoding.
|
private boolean |
confidential
Confidential flag.
|
private boolean |
integrityProtected
Integrity-protected flag.
|
private org.opensaml.xml.security.credential.Credential |
localCredential
Local credential.
|
private org.opensaml.xml.security.credential.Credential |
peerCredential
Peer credential.
|
Constructor and Description |
---|
BaseTransport()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String name)
Gets a transport-specific attribute.
|
String |
getCharacterEncoding()
Gets the character encoding of the transport.
|
org.opensaml.xml.security.credential.Credential |
getLocalCredential()
Gets the local credential used to authenticate to the peer.
|
org.opensaml.xml.security.credential.Credential |
getPeerCredential()
Gets the credential offered by the peer to authenticate itself.
|
boolean |
isAuthenticated()
Gets whether the peer is authenticated.
|
boolean |
isConfidential()
Gets whether the transport represents a confidential connection (e.g.
|
boolean |
isIntegrityProtected()
Gets whether the transport represents a connection that protects the integrity of transported content.
|
protected void |
setAttribute(String name,
Object value)
Set an attribute value.
|
void |
setAuthenticated(boolean isAuthenticated)
Sets whether the peer is authenticated.
|
protected void |
setCharacterEncoding(String encoding)
Set the character encoding.
|
void |
setConfidential(boolean isConfidential)
Sets whether the transport represents a confidential connection.
|
void |
setIntegrityProtected(boolean isIntegrityProtected)
Sets whether the transport represents a connection that protects the integrity of transported content.
|
private org.opensaml.xml.security.credential.Credential localCredential
private org.opensaml.xml.security.credential.Credential peerCredential
private String characterEncoding
private boolean authenticated
private boolean confidential
private boolean integrityProtected
public Object getAttribute(String name)
getAttribute
in interface Transport
name
- name of the attributepublic String getCharacterEncoding()
getCharacterEncoding
in interface Transport
public org.opensaml.xml.security.credential.Credential getLocalCredential()
getLocalCredential
in interface Transport
public org.opensaml.xml.security.credential.Credential getPeerCredential()
getPeerCredential
in interface Transport
public boolean isAuthenticated()
isAuthenticated
in interface Transport
public boolean isConfidential()
isConfidential
in interface Transport
public boolean isIntegrityProtected()
isIntegrityProtected
in interface Transport
public void setAuthenticated(boolean isAuthenticated)
setAuthenticated
in interface Transport
isAuthenticated
- whether the peer is authenticatedpublic void setConfidential(boolean isConfidential)
setConfidential
in interface Transport
isConfidential
- whether the transport represents a confidential connectionpublic void setIntegrityProtected(boolean isIntegrityProtected)
setIntegrityProtected
in interface Transport
isIntegrityProtected
- whether the transport represents a connection that protects the integrity of
transported contentprotected void setAttribute(String name, Object value)
name
- attribute namevalue
- attribute valueprotected void setCharacterEncoding(String encoding)
encoding
- the character encodingCopyright © 1999-2013 JBoss by Red Hat. All Rights Reserved.