Package org.opensaml.xml.security

Examples of org.opensaml.xml.security.SecurityException


            return credentials;

        } catch (MetadataProviderException e) {

            throw new SecurityException("Error loading metadata information", e);

        }

    }
View Full Code Here


                        + X509Util.getIdentifiersToken(untrustedCredential, getX500DNHandler()) + ": " + e.getMessage());
            }
            return false;
        } catch (GeneralSecurityException e) {
            log.error("PKIX validation failure", e);
            throw new SecurityException("PKIX validation failure", e);
        }
    }
View Full Code Here

            for (String key : trustedKeys) {
                anchors.add(keyManager.getCertificate(key));
            }

        } catch (MetadataProviderException e) {
            throw new SecurityException("Error loading extended metadata", e);
        }

    }
View Full Code Here

        boolean bindingRequires = isIntendedDestinationEndpointURIRequired(messageContext);
       
        if (messageDestination == null) {
            if (bindingRequires) {
                log.error("SAML message intended destination endpoint URI required by binding was empty");
                throw new SecurityException("SAML message intended destination (required by binding) was not present");
            } else {
                log.debug("SAML message intended destination endpoint in message was empty, not required by binding, skipping");
                return;
            }
        }
       
        String receiverEndpoint = getActualReceiverEndpointURI(messageContext);
       
        log.debug("Intended message destination endpoint: {}", messageDestination);
        log.debug("Actual message receiver endpoint: {}", receiverEndpoint);
       
        boolean matched = compareEndpointURIs(messageDestination, receiverEndpoint);
        if (!matched) {
            log.error("SAML message intended destination endpoint '{}' did not match the recipient endpoint '{}'",
                    messageDestination, receiverEndpoint);
            throw new SecurityException("SAML message intended destination endpoint did not match recipient endpoint");
        } else {
            log.debug("SAML message intended destination endpoint matched recipient endpoint");
        }
    }
View Full Code Here

                roles.add(roleDescriptor);
                return roles;
            }
        } catch (MetadataProviderException e) {
            log.error("Unable to read metadata from provider", e);
            throw new SecurityException("Unable to read metadata provider", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.opensaml.xml.security.SecurityException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.