Skip to Content.
Sympa Menu

mace-opensaml-users - SAML2ArtifactType0004

Subject: OpenSAML user discussion

List archive

SAML2ArtifactType0004


Chronological Thread 
  • From: Jeff Brewer <>
  • To: "" <>
  • Subject: SAML2ArtifactType0004
  • Date: Tue, 19 Jun 2007 11:31:10 -0700
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Z-usanet-msgid: XID044LFssfP0152X29

It appears as though there is an issue in the Alpha release with getRemainingArtifact in SAML2ArtifactType0004. The javadoc says “Gets the artifact bytes minus the type code.” But it seems to only be returning 20 bytes (I am trying to call getArtifactBytes and its returning 24 bytes instead of 44).

 

Here is the current code:

 

    public byte[] getRemainingArtifact() {

        byte[] remainingArtifact = new byte[20];

 

        System.arraycopy(getSourceID(), 0, remainingArtifact, 0, 20);

        System.arraycopy(getMessageHandle(), 0, remainingArtifact, 0, 20);

 

        return remainingArtifact;

    }

 

I think it should be

 

    public byte[] getRemainingArtifact() {

        byte[] remainingArtifact = new byte[40];

 

        System.arraycopy(getSourceID(), 0, remainingArtifact, 0, 20);

        System.arraycopy(getMessageHandle(), 0, remainingArtifact, 20, 20);

 

        return remainingArtifact;

    }

 




Archive powered by MHonArc 2.6.16.

Top of Page