@Service public class SAML2IdPServiceImpl extends Object implements SAML2IdPService
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
protected org.apache.cxf.jaxrs.ext.MessageContext |
messageContext |
protected static String |
OPTIONS_ALLOW |
protected SearchCondVisitor |
searchCondVisitor |
protected org.apache.cxf.jaxrs.ext.search.SearchContext |
searchContext |
protected javax.ws.rs.core.UriInfo |
uriInfo |
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER
Constructor and Description |
---|
SAML2IdPServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected javax.ws.rs.core.Response.ResponseBuilder |
applyPreference(ProvisioningResult<?> provisioningResult,
javax.ws.rs.core.Response.ResponseBuilder builder) |
protected <T extends BaseBean> |
buildPagedResult(List<T> list,
int page,
int size,
int totalCount)
Builds a paged result out of a list of items and additional information.
|
protected void |
checkETag(String etag) |
protected javax.ws.rs.core.Response |
createResponse(ProvisioningResult<?> provisioningResult)
Builds response to successful
create request, taking into account any Prefer header. |
void |
delete(String key)
Deletes the SAML 2.0 Identity Provider with matching entityID.
|
Set<String> |
getActionsClasses()
Returns the list of available SAML2IdPActions implementations.
|
protected String |
getActualKey(AnyDAO<?> dao,
String pretendingKey) |
protected List<OrderByClause> |
getOrderByClauses(String orderBy) |
protected Preference |
getPreference()
Reads
Prefer header from request and parses into a Preference instance. |
Set<String> |
getRequestedAuthnContextProviderClasses()
Returns the list of available RequestedAuthnContextProviders implementations.
|
protected SearchCond |
getSearchCond(String fiql,
String realm) |
javax.ws.rs.core.Response |
importFromMetadata(InputStream input)
Imports the SAML 2.0 Identity Provider definitions available in the provided XML metadata.
|
protected boolean |
isNullPriorityAsync() |
List<SAML2IdPTO> |
list()
Returns a list of all defined SAML 2.0 Identity Providers.
|
protected javax.ws.rs.core.Response |
modificationResponse(Object entity)
Builds response to successful modification request, taking into account any
Prefer header. |
SAML2IdPTO |
read(String key)
Returns the SAML 2.0 Identity Provider with matching entityID, if available.
|
void |
update(SAML2IdPTO saml2IdpTO)
Updates the SAML 2.0 Identity Provider with matching entityID.
|
protected static final org.slf4j.Logger LOG
protected static final String OPTIONS_ALLOW
@Context protected javax.ws.rs.core.UriInfo uriInfo
@Context protected org.apache.cxf.jaxrs.ext.MessageContext messageContext
@Context protected org.apache.cxf.jaxrs.ext.search.SearchContext searchContext
@Autowired protected SearchCondVisitor searchCondVisitor
public Set<String> getActionsClasses()
SAML2IdPService
getActionsClasses
in interface SAML2IdPService
public Set<String> getRequestedAuthnContextProviderClasses()
SAML2IdPService
getRequestedAuthnContextProviderClasses
in interface SAML2IdPService
public List<SAML2IdPTO> list()
SAML2IdPService
list
in interface SAML2IdPService
public SAML2IdPTO read(String key)
SAML2IdPService
read
in interface SAML2IdPService
key
- SAML 2.0 Identity Provider's entityIDpublic javax.ws.rs.core.Response importFromMetadata(InputStream input)
SAML2IdPService
importFromMetadata
in interface SAML2IdPService
input
- XML metadatapublic void update(SAML2IdPTO saml2IdpTO)
SAML2IdPService
update
in interface SAML2IdPService
saml2IdpTO
- idp configuration to be storedpublic void delete(String key)
SAML2IdPService
delete
in interface SAML2IdPService
key
- SAML 2.0 Identity Provider's entityIDprotected boolean isNullPriorityAsync()
protected Preference getPreference()
Prefer
header from request and parses into a Preference
instance.Preference
instance matching the passed Prefer
header,
or Preference.NONE
if missing.protected javax.ws.rs.core.Response.ResponseBuilder applyPreference(ProvisioningResult<?> provisioningResult, javax.ws.rs.core.Response.ResponseBuilder builder)
protected javax.ws.rs.core.Response createResponse(ProvisioningResult<?> provisioningResult)
create
request, taking into account any Prefer
header.provisioningResult
- the entity just createdcreate
requestprotected javax.ws.rs.core.Response modificationResponse(Object entity)
Prefer
header.entity
- the entity just modifiedprotected void checkETag(String etag)
protected SearchCond getSearchCond(String fiql, String realm)
protected List<OrderByClause> getOrderByClauses(String orderBy)
protected <T extends BaseBean> PagedResult<T> buildPagedResult(List<T> list, int page, int size, int totalCount)
T
- result typelist
- bare list of items to be returnedpage
- current pagesize
- requested sizetotalCount
- total result size (not considering pagination)Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.