Package swiss.trustbroker.wstrust.util
Class WsTrustUtil
java.lang.Object
swiss.trustbroker.wstrust.util.WsTrustUtil
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic org.opensaml.soap.wssecurity.CreatedcreateCreated(Instant createdTime) static org.opensaml.soap.wsfed.AddresscreateEndpointRefAddress(String subjectCondition) static org.opensaml.soap.wssecurity.ExpirescreateExpires(Instant expiresDate) static org.opensaml.soap.wssecurity.KeyIdentifiercreateKeyIdentifier(String assertionId) static org.opensaml.soap.wstrust.KeyTypecreateKeyType(String keyTypeValue) static org.opensaml.soap.wstrust.LifetimecreateLifeTime(Instant createdTime, Instant expiresTime) static org.opensaml.soap.wstrust.RequestedAttachedReferencecreateRequestedAttachedRef(String assertionId) static org.opensaml.soap.wstrust.RequestedSecurityTokencreateRequestedSecurityToken(org.opensaml.saml.saml2.core.Assertion assertion) static org.opensaml.soap.wstrust.RequestTypecreateRequestType(String typeValue) static org.opensaml.soap.wstrust.RequestedUnattachedReferencecreateRequestUnattachedRef(String assertionId) static org.opensaml.soap.wspolicy.AppliesTocreateResponseAppliesTo(String subjectCondition) static org.opensaml.soap.wsfed.EndPointReferencecreateResponseEndpointReference(String subjectCondition) static org.opensaml.soap.wssecurity.SecurityTokenReferencecreateSecurityTokenReference(String assertionId) static org.opensaml.soap.wstrust.RequestSecurityTokenResponsecreateSecurityTokenResponse(org.opensaml.soap.wstrust.RequestedSecurityToken requestedSecurityToken) static org.opensaml.soap.wssecurity.TimestampcreateTimestamp(Instant createdTime, Instant expiresTime) static org.opensaml.soap.wstrust.TokenTypestatic QNamestatic QNamestatic StringgetAddressFromRequest(org.opensaml.soap.wstrust.RequestSecurityToken requestSecurityToken) getAuthnContextClasses(org.opensaml.saml.saml2.core.Assertion requestHeaderAssertion) static StringgetElementValueByTagName(String tagName, String tagNameWithNamespace, Element element) static StringgetIssuerId(org.opensaml.saml.saml2.core.Assertion assertion) static StringgetKeyTypeFromRequest(org.opensaml.soap.wstrust.RequestSecurityToken requestSecurityToken) static org.opensaml.saml.saml2.core.NameIDgetNameID(org.opensaml.saml.saml2.core.Assertion assertion) static NodegetNode(org.springframework.ws.soap.SoapElement soapMessage) static booleanisClientIpAllowed(String clientIpRegex, boolean enforceClientIp, String clientIp) static booleanisNetworkAllowed(List<String> allowedNetworks, boolean enforceClientNetwork, jakarta.servlet.http.HttpServletRequest request, swiss.trustbroker.config.dto.NetworkConfig network) static booleanvalidatePeriod(String periodType, org.opensaml.soap.wssecurity.Created created, org.opensaml.soap.wssecurity.Expires expires, Instant now, long notBeforeToleranceSec, long notOnOrAfterToleranceSec)
-
Field Details
-
OP_LOG
public static final org.slf4j.Logger OP_LOG
-
-
Method Details
-
createLifeTime
-
createTimestamp
-
createExpires
-
createCreated
-
createResponseAppliesTo
-
createResponseEndpointReference
public static org.opensaml.soap.wsfed.EndPointReference createResponseEndpointReference(String subjectCondition) -
createEndpointRefAddress
-
createKeyType
-
createTokenType
public static org.opensaml.soap.wstrust.TokenType createTokenType() -
createRequestType
-
createRequestUnattachedRef
public static org.opensaml.soap.wstrust.RequestedUnattachedReference createRequestUnattachedRef(String assertionId) -
createRequestedAttachedRef
public static org.opensaml.soap.wstrust.RequestedAttachedReference createRequestedAttachedRef(String assertionId) -
createSecurityTokenReference
public static org.opensaml.soap.wssecurity.SecurityTokenReference createSecurityTokenReference(String assertionId) -
createKeyIdentifier
-
createTokenTypeAttribute
-
createTokenTypeAttributeValue
-
createRequestedSecurityToken
public static org.opensaml.soap.wstrust.RequestedSecurityToken createRequestedSecurityToken(org.opensaml.saml.saml2.core.Assertion assertion) -
createSecurityTokenResponse
public static org.opensaml.soap.wstrust.RequestSecurityTokenResponse createSecurityTokenResponse(org.opensaml.soap.wstrust.RequestedSecurityToken requestedSecurityToken) -
getKeyTypeFromRequest
public static String getKeyTypeFromRequest(org.opensaml.soap.wstrust.RequestSecurityToken requestSecurityToken) -
getAddressFromRequest
public static String getAddressFromRequest(org.opensaml.soap.wstrust.RequestSecurityToken requestSecurityToken) -
getElementValueByTagName
-
validatePeriod
-
getNode
-
isNetworkAllowed
-
isClientIpAllowed
-
getNameID
public static org.opensaml.saml.saml2.core.NameID getNameID(org.opensaml.saml.saml2.core.Assertion assertion) -
getAuthnContextClasses
-
getIssuerId
-