ValueType - type of value produced by this encoderpublic class MockEncoder<ValueType> extends Object implements net.shibboleth.idp.attribute.AttributeEncoder<ValueType>
AttributeEncoder.| Modifier and Type | Field and Description |
|---|---|
private ValueType |
encodedValue
Static encoded attribute value for this encoder.
|
private String |
proto
Static protocol string for this encoder.
|
| Constructor and Description |
|---|
MockEncoder()
Constructor.
|
MockEncoder(String protocol,
ValueType encodedAttributeValue)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ValueType |
encode(net.shibboleth.idp.attribute.IdPAttribute attribute) |
Predicate<ProfileRequestContext> |
getActivationCondition() |
String |
getProtocol() |
private String proto
private ValueType encodedValue
public MockEncoder()
public MockEncoder(String protocol, ValueType encodedAttributeValue)
protocol - static value to bereturned from getProtocol()encodedAttributeValue - static value to be returned from encode(IdPAttribute)public String getProtocol()
getProtocol in interface net.shibboleth.idp.attribute.AttributeEncoder<ValueType>public ValueType encode(net.shibboleth.idp.attribute.IdPAttribute attribute) throws net.shibboleth.idp.attribute.AttributeEncodingException
encode in interface net.shibboleth.idp.attribute.AttributeEncoder<ValueType>net.shibboleth.idp.attribute.AttributeEncodingExceptionpublic Predicate<ProfileRequestContext> getActivationCondition()
getActivationCondition in interface net.shibboleth.idp.attribute.AttributeEncoder<ValueType>Copyright © 1999–2018 Shibboleth Consortium. All rights reserved.