protected SubjectLocality buildSubjectLocality(final Object assertion, final RequestAbstractType authnRequest,
                                                   final SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
                                                   final String binding) throws SamlException {
        val subjectLocality = newSamlObject(SubjectLocality.class);
        val hostAddress = InetAddressUtils.getCasServerHostAddress(casProperties.getServer().getName());
        val issuer = SamlIdPUtils.getIssuerFromSamlObject(authnRequest);
        LOGGER.debug("Built subject locality address [{}] for the saml authentication statement prepped for [{}]", hostAddress, issuer);
        subjectLocality.setAddress(hostAddress);
        return subjectLocality;
    }
protected SubjectLocality buildSubjectLocality ( final Object assertion , final RequestAbstractType authnRequest , final SamlRegisteredServiceServiceProviderMetadataFacade adaptor , final String binding ) throws SamlException { val subjectLocality = newSamlObject ( SubjectLocality . class ) ; val hostAddress = InetAddressUtils . getCasServerHostAddress ( casProperties . getServer ( ) . getName ( ) ) ; val issuer = SamlIdPUtils . getIssuerFromSamlObject ( authnRequest ) ; LOGGER . debug ( "Built subject locality address [{}] for the saml authentication statement prepped for [{}]" , hostAddress , issuer ) ; subjectLocality . setAddress ( hostAddress ) ; return subjectLocality ; }
Build subject locality subject locality.

@param assertion    the assertion
@param authnRequest the authn request
@param adaptor      the adaptor
@param binding      the binding
@return the subject locality
@throws SamlException the saml exception